<template>
  <view class="car-blank" :style="{height: (windowHeight - 50 - 44) + 'px'}">
    <view class="tip-txt"><text>登录后查看购物车</text></view>
    <view class="tip-operation uni-mt-6">
      <button type="warn" size="mini" @tap="jumpToLogin()">去登录</button>
    </view>
  </view>
</template>
<script setup lang="ts">
const {windowHeight} = uni.getSystemInfoSync()

const jumpToLogin = () => {
  uni.switchTab({url: '/pages/my/my'})
}
</script>
<style lang="scss">
.car-blank {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .tip-txt {
    color: $uni-secondary-color
  }
  .tip-operation {
    .to-login {
      border: 1px solid $uni-color-error;
      font-size: 12px;
    }
  }
}
</style>